#ifndef HUD_H
#define HUD_H

#include <SFML/System.hpp>
#include <SFML/Graphics.hpp>
#include "player.h"

#define HS_OFF 0
#define HS_RED 1
#define HS_GREEN 2
#define HS_OVER 3
#define HS_NEWROUND 4
#define HS_GAMEOVER 5

class HUD
{
private:
	sf::Image imgLights[3];
	sf::Sprite spLights[3];
	unsigned char state;
	unsigned char lights;
	unsigned char spPoc;
	unsigned char round;
	unsigned char place;	
	sf::Clock clock;
	Player* players[4];
public:
	HUD(Player* p1, Player* p2, Player* p3, Player* p4);
	void start();
	void update();
	bool nextRound();
	bool gameOver();
	sf::Sprite* getSprite(int height);
	unsigned char getState();
	~HUD();
};

#endif
